@extends("layouts.backend.webadmin")
@section('page-header')
<h1>
    <small>新增检查项</small>
</h1>
@endsection

@section('content')
<link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/select2/css/select2.min.css">
<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-xs-12">

            <div class="box">

                <div class="box-body">
                    @if($errors->any())
                        <ul class="alert alert-danger">
                            @foreach($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    @endif
                    <form method="post" action="{{ URL::route('admin.checkoption.addrow') }}">
                        <div class="form-group">
                            <label for="name">名称</label>

                            <input value="{{old('name')}}" name="name" type="text" class="form-control" placeholder="名称">
                        </div>
                        <div class="form-group">
                            <label for="title">标题</label>

                            <input value="{{old('title')}}" name="title" type="text" class="form-control" placeholder="标题">
                        </div>
                        <div class="form-group">
                            <label for="keywords">关键词</label>

                            <input value="{{old('keywords')}}" name="keywords" type="text" class="form-control" placeholder="关键词">
                        </div>
                        <div class="form-group">
                            <label for="description">描述</label>
                            <textarea class="form-control" rows="3" name="description">
                                {{old('description')}}
                            </textarea>
                        </div>
                        {!! csrf_field() !!}
                        <button type="submit" class="btn btn-primary">提交</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
@stop
@section('javascript-end')
<script src="{{env('APP_ROOT')}}/assets/select2/js/select2.min.js"></script>
<script>
    $(function () {
        console.log('welcome to ck page.');
        //日历控件
        $('.data-picker').datepicker({
            autoclose: true
        });
        //下拉筛选
        $('.select2').select2({"border-radius":'0px'});
    });
</script>
@endsection
